<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" import="java.util.*,BEAN.*" %>
<%@ page session="true" %> 
<jsp:include page="menu.jsp"></jsp:include>
<div id="content">

		<h1>Editar de Editoras</h1>
		<br/>
		<% ArrayList<String> mensagens = (ArrayList<String>) session.getAttribute("erro");
			if (mensagens != null){
				for (String mensagem : mensagens){%>
		     	   	<h3><%=mensagem.toString()%></h3>
		     	   	<br/>
			        <%}
			    mensagens.clear();
			    session.setAttribute("erro", mensagens); 
		        
	    }%>
		<br/>
		<br/>
	<%  EditoraBean editora = (EditoraBean) session.getAttribute("editora"); %>
	<div style="position:absolute; margin-left: 370px;">
		<form  id="form1" action="/Livraria/livraria"  method="POST">
			<h3>
			<label>ID</label>
				<input type="text" size="50" readonly="readonly" name="id" value="<%=editora.getId()%>"><br/>
			<label>Nome</label>
				<input type="text" size="50" name="nome" value="<%=editora.getNome()%>"><br/>
			<label>Endere&ccedil;o</label>
			    <textarea rows="2" cols="39" name="endereco" ><%=editora.getEndereco()%></textarea><br/>
			<label>Telefone</label>
			    <input type="text" size="50" name="telefone" value="<%=editora.getTelefone()%>"><br/>
			</h3>		
			  <input type="submit" value="Atualizar"  />
    	      <input size="3" type="hidden" name="corrente" value="21">
		</form>
	</div>
</div>	
</body>
</html>
